<?php
/**
 * This file belongs to huakaili project
 *
 * @author jszhang
 */
?>
<div id="sidebar_right">
	<?php
	if( $errmsg->size('msg_setting') > 0 ) $errmsg->output('msg_setting');
	?>
	
	<h2>站内信订阅设置</h2>
	<hr />
	
	<h2>如下事件请给我发站内信</h2>
	<form method="POST" action="<?php echo edp_href_link(PAGENAME_USER_SETTING, 'subpage=msg_setting');?>">
		<input type="hidden" id="action" name="action" value="msg_setting" >
		<input type="hidden" id="id" name="id" value="<?php echoPageVar($pageVars, "id");?>" />
		<ul>
			<li>
				<input id="chkaddshop" type="checkbox" name="add_shop" value="1" <?php echo $pageVars["add_shop"]?"checked":"";?> />
				<label for="chkaddshop">添加的店铺通过验证或未通过验证</label>
			</li>
			<li>
				<input id="chkupdateshop" type="checkbox" name="correct_shop" value="1" <?php echo $pageVars["correct_shop"]?"checked":"";?> />
				<label for="chkupdateshop">更正店铺信息通过验证或未通过验证</label>
			</li>
			<li>
				<input id="chkaddproduct" type="checkbox" name="correct_product" value="1" <?php echo $pageVars["correct_product"]?"checked":"";?> />
				<label for="chkaddproduct">更正商品信息通过验证或未通过验证</label>
			</li>
			<li>
				<input id="chkotherproduct" type="checkbox" name="product_corrected" value="1" <?php echo $pageVars["product_corrected"]?"checked":"";?> />
				<label for="chkotherproduct">添加的商品信息被他人更正</label>
			</li>
			<li>
				<input id="chkothershop" type="checkbox" name="shop_corrected" value="1" <?php echo $pageVars["shop_corrected"]?"checked":"";?> />
				<label for="chkothershop">添加的店铺信息被他人更正</label>
			</li>
			<li>
				<input id="chkotheraddfriend" type="checkbox" name="friend_added" value="1" <?php echo $pageVars["friend_added"]?"checked":"";?> />
				<label for="chkotheraddfriend">他人添加您为好友</label>
			</li>
			<li>
				<input id="chkdeductscore" type="checkbox" name="contribution_change" value="1" <?php echo $pageVars["contribution_change"]?"checked":"";?> />
				<label for="chkdeductscore">由于出现本站禁止的行为而导致被扣贡献度</label>
			</li>
		</ul>
		<a href="#">查看注册协议</a>
		<br />
		<span style="color:red">* 选中事件触发时，用户将收到站内信提醒。</span>
		<br /><br />
		<input type="submit" value="保存设置" />
	</form>
</div>